\doxysection{svm\+\_\+functions.\+h}
\hypertarget{svm__functions_8h_source}{}\label{svm__functions_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Middlewares/ST/ARM/DSP/Include/dsp/svm\_functions.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Middlewares/ST/ARM/DSP/Include/dsp/svm\_functions.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/******************************************************************************}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ *\ @file\ \ \ \ \ svm\_functions.h}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ @brief\ \ \ \ Public\ header\ file\ for\ CMSIS\ DSP\ Library}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ @version\ \ V1.10.0}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ @date\ \ \ \ \ 08\ July\ 2021}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ Target\ Processor:\ Cortex-\/M\ and\ Cortex-\/A\ cores}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ ******************************************************************************/}}
\DoxyCodeLine{00008\ \textcolor{comment}{/*}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ Copyright\ (c)\ 2010-\/2020\ Arm\ Limited\ or\ its\ affiliates.\ All\ rights\ reserved.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ SPDX-\/License-\/Identifier:\ Apache-\/2.0}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ Licensed\ under\ the\ Apache\ License,\ Version\ 2.0\ (the\ License);\ you\ may}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ not\ use\ this\ file\ except\ in\ compliance\ with\ the\ License.}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ You\ may\ obtain\ a\ copy\ of\ the\ License\ at}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ www.apache.org/licenses/LICENSE-\/2.0}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ Unless\ required\ by\ applicable\ law\ or\ agreed\ to\ in\ writing,\ software}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ distributed\ under\ the\ License\ is\ distributed\ on\ an\ AS\ IS\ BASIS,\ WITHOUT}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ WARRANTIES\ OR\ CONDITIONS\ OF\ ANY\ KIND,\ either\ express\ or\ implied.}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ See\ the\ License\ for\ the\ specific\ language\ governing\ permissions\ and}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *\ limitations\ under\ the\ License.}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ \ }
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#ifndef\ \_SVM\_FUNCTIONS\_H\_}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#define\ \_SVM\_FUNCTIONS\_H\_}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \textcolor{preprocessor}{\#include\ "{}arm\_math\_types.h"{}}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#include\ "{}arm\_math\_memory.h"{}}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#include\ "{}dsp/none.h"{}}}
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#include\ "{}dsp/utils.h"{}}}
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#include\ "{}dsp/svm\_defines.h"{}}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#ifdef\ \ \ \_\_cplusplus}}
\DoxyCodeLine{00038\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}}
\DoxyCodeLine{00039\ \{}
\DoxyCodeLine{00040\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#define\ STEP(x)\ (x)\ <=\ 0\ ?\ 0\ :\ 1}}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00065\ \_\_STATIC\_INLINE\ float32\_t\ arm\_exponent\_f32(float32\_t\ x,\ int32\_t\ nb)}
\DoxyCodeLine{00066\ \{}
\DoxyCodeLine{00067\ \ \ \ \ float32\_t\ r\ =\ x;}
\DoxyCodeLine{00068\ \ \ \ \ nb\ -\/-\/;}
\DoxyCodeLine{00069\ \ \ \ \ \textcolor{keywordflow}{while}(nb\ >\ 0)}
\DoxyCodeLine{00070\ \ \ \ \ \{}
\DoxyCodeLine{00071\ \ \ \ \ \ \ \ \ r\ =\ r\ *\ x;}
\DoxyCodeLine{00072\ \ \ \ \ \ \ \ \ nb-\/-\/;}
\DoxyCodeLine{00073\ \ \ \ \ \}}
\DoxyCodeLine{00074\ \ \ \ \ \textcolor{keywordflow}{return}(r);}
\DoxyCodeLine{00075\ \}}
\DoxyCodeLine{00076\ }
\DoxyCodeLine{00077\ \ \ }
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00079\ }
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00084\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00085\ \{}
\DoxyCodeLine{00086\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00087\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00088\ \ \ float32\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00089\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00090\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00091\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00092\ \}\ \mbox{\hyperlink{structarm__svm__linear__instance__f32}{arm\_svm\_linear\_instance\_f32}};}
\DoxyCodeLine{00093\ }
\DoxyCodeLine{00094\ }
\DoxyCodeLine{00098\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00099\ \{}
\DoxyCodeLine{00100\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00101\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00102\ \ \ float32\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00103\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00104\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00105\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00106\ \ \ int32\_t\ \ \ \ \ \ \ \ \ degree;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00107\ \ \ float32\_t\ \ \ \ \ \ \ coef0;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00108\ \ \ float32\_t\ \ \ \ \ \ \ gamma;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00109\ \}\ \mbox{\hyperlink{structarm__svm__polynomial__instance__f32}{arm\_svm\_polynomial\_instance\_f32}};}
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00114\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00115\ \{}
\DoxyCodeLine{00116\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00117\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00118\ \ \ float32\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00119\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00120\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00121\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00122\ \ \ float32\_t\ \ \ \ \ \ \ gamma;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00123\ \}\ \mbox{\hyperlink{structarm__svm__rbf__instance__f32}{arm\_svm\_rbf\_instance\_f32}};}
\DoxyCodeLine{00124\ }
\DoxyCodeLine{00128\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00129\ \{}
\DoxyCodeLine{00130\ \ \ uint32\_t\ \ \ \ \ \ \ \ nbOfSupportVectors;\ \ \ \ \ }
\DoxyCodeLine{00131\ \ \ uint32\_t\ \ \ \ \ \ \ \ vectorDimension;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00132\ \ \ float32\_t\ \ \ \ \ \ \ intercept;\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00133\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients;\ \ \ \ \ \ }
\DoxyCodeLine{00134\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00135\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00136\ \ \ float32\_t\ \ \ \ \ \ \ coef0;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00137\ \ \ float32\_t\ \ \ \ \ \ \ gamma;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00138\ \}\ \mbox{\hyperlink{structarm__svm__sigmoid__instance__f32}{arm\_svm\_sigmoid\_instance\_f32}};}
\DoxyCodeLine{00139\ }
\DoxyCodeLine{00152\ }
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00154\ \textcolor{keywordtype}{void}\ arm\_svm\_linear\_init\_f32(\mbox{\hyperlink{structarm__svm__linear__instance__f32}{arm\_svm\_linear\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00155\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00156\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00157\ \ \ float32\_t\ intercept,}
\DoxyCodeLine{00158\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients,}
\DoxyCodeLine{00159\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors,}
\DoxyCodeLine{00160\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ *classes);}
\DoxyCodeLine{00161\ }
\DoxyCodeLine{00170\ \ \ }
\DoxyCodeLine{00171\ \textcolor{keywordtype}{void}\ arm\_svm\_linear\_predict\_f32(\textcolor{keyword}{const}\ \mbox{\hyperlink{structarm__svm__linear__instance__f32}{arm\_svm\_linear\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00172\ \ \ \ \textcolor{keyword}{const}\ float32\_t\ *\ in,\ }
\DoxyCodeLine{00173\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00174\ }
\DoxyCodeLine{00175\ }
\DoxyCodeLine{00191\ }
\DoxyCodeLine{00192\ }
\DoxyCodeLine{00193\ \textcolor{keywordtype}{void}\ arm\_svm\_polynomial\_init\_f32(\mbox{\hyperlink{structarm__svm__polynomial__instance__f32}{arm\_svm\_polynomial\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00194\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00195\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00196\ \ \ float32\_t\ intercept,}
\DoxyCodeLine{00197\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients,}
\DoxyCodeLine{00198\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors,}
\DoxyCodeLine{00199\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes,}
\DoxyCodeLine{00200\ \ \ int32\_t\ \ \ \ \ \ degree,}
\DoxyCodeLine{00201\ \ \ float32\_t\ coef0,}
\DoxyCodeLine{00202\ \ \ float32\_t\ gamma}
\DoxyCodeLine{00203\ \ \ );}
\DoxyCodeLine{00204\ }
\DoxyCodeLine{00213\ \textcolor{keywordtype}{void}\ arm\_svm\_polynomial\_predict\_f32(\textcolor{keyword}{const}\ \mbox{\hyperlink{structarm__svm__polynomial__instance__f32}{arm\_svm\_polynomial\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00214\ \ \ \ \textcolor{keyword}{const}\ float32\_t\ *\ in,\ }
\DoxyCodeLine{00215\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00216\ }
\DoxyCodeLine{00217\ }
\DoxyCodeLine{00231\ }
\DoxyCodeLine{00232\ \textcolor{keywordtype}{void}\ arm\_svm\_rbf\_init\_f32(\mbox{\hyperlink{structarm__svm__rbf__instance__f32}{arm\_svm\_rbf\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00233\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00234\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00235\ \ \ float32\_t\ intercept,}
\DoxyCodeLine{00236\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients,}
\DoxyCodeLine{00237\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors,}
\DoxyCodeLine{00238\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes,}
\DoxyCodeLine{00239\ \ \ float32\_t\ gamma}
\DoxyCodeLine{00240\ \ \ );}
\DoxyCodeLine{00241\ }
\DoxyCodeLine{00250\ \textcolor{keywordtype}{void}\ arm\_svm\_rbf\_predict\_f32(\textcolor{keyword}{const}\ \mbox{\hyperlink{structarm__svm__rbf__instance__f32}{arm\_svm\_rbf\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00251\ \ \ \ \textcolor{keyword}{const}\ float32\_t\ *\ in,\ }
\DoxyCodeLine{00252\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00253\ }
\DoxyCodeLine{00268\ }
\DoxyCodeLine{00269\ \textcolor{keywordtype}{void}\ arm\_svm\_sigmoid\_init\_f32(\mbox{\hyperlink{structarm__svm__sigmoid__instance__f32}{arm\_svm\_sigmoid\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00270\ \ \ uint32\_t\ nbOfSupportVectors,}
\DoxyCodeLine{00271\ \ \ uint32\_t\ vectorDimension,}
\DoxyCodeLine{00272\ \ \ float32\_t\ intercept,}
\DoxyCodeLine{00273\ \ \ \textcolor{keyword}{const}\ float32\_t\ *dualCoefficients,}
\DoxyCodeLine{00274\ \ \ \textcolor{keyword}{const}\ float32\_t\ *supportVectors,}
\DoxyCodeLine{00275\ \ \ \textcolor{keyword}{const}\ int32\_t\ \ \ *classes,}
\DoxyCodeLine{00276\ \ \ float32\_t\ coef0,}
\DoxyCodeLine{00277\ \ \ float32\_t\ gamma}
\DoxyCodeLine{00278\ \ \ );}
\DoxyCodeLine{00279\ }
\DoxyCodeLine{00288\ \textcolor{keywordtype}{void}\ arm\_svm\_sigmoid\_predict\_f32(\textcolor{keyword}{const}\ \mbox{\hyperlink{structarm__svm__sigmoid__instance__f32}{arm\_svm\_sigmoid\_instance\_f32}}\ *S,\ }
\DoxyCodeLine{00289\ \ \ \ \textcolor{keyword}{const}\ float32\_t\ *\ in,\ }
\DoxyCodeLine{00290\ \ \ \ int32\_t\ *\ pResult);}
\DoxyCodeLine{00291\ }
\DoxyCodeLine{00292\ }
\DoxyCodeLine{00293\ }
\DoxyCodeLine{00294\ }
\DoxyCodeLine{00295\ \textcolor{preprocessor}{\#ifdef\ \ \ \_\_cplusplus}}
\DoxyCodeLine{00296\ \}}
\DoxyCodeLine{00297\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00298\ }
\DoxyCodeLine{00299\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ ifndef\ \_SVM\_FUNCTIONS\_H\_\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
